package com.lcw.lostandfound.service.Impl;

import com.lcw.lostandfound.mapper.ImgMapper;
import com.lcw.lostandfound.pojo.FindImg;

import com.lcw.lostandfound.service.ImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImgServiceImpl implements ImgService {

    @Autowired
    private ImgMapper findImgMapper;
    @Override
    public Integer saveImg(FindImg findImg) {
        return findImgMapper.saveImg(findImg);
    }

    @Override
    public FindImg findImgByUserId(Integer userId) {
        return findImgMapper.findImgByUserId(userId);
    }

    @Override
    public List<FindImg> listWallFindImg() {
        return findImgMapper.listWallFindImg();
    }

    @Override
    public Integer deleteFindImg(Integer findMsgId) {
        return findImgMapper.deleteFindImg(findMsgId);
    }
}
